body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #e0e0e0;
}

.game-container {
  background: #2a2a2a;
  padding: 2rem;
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  margin: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

h1 {
  color: #ffffff;
  font-size: 2.5rem;
  margin: 0 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.game-icon {
  font-size: 2.5rem;
  color: #bb86fc;
}

.board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 400px;
  margin: 24px auto;
}

.cell {
  background: #333333;
  border: none;
  border-radius: 16px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  /* biome-ignore lint/suspicious/noDuplicateProperties: eh */
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cell:hover:not(.played) {
  background: #404040;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
}

.cell.played {
  cursor: not-allowed;
}

.cell .material-icons-round {
  font-size: 2.5rem;
  transition: transform 0.2s ease;
}

.cell:hover .material-icons-round {
  transform: scale(1.1);
}

.status {
  font-size: 1.5rem;
  margin: 20px 0;
  font-weight: 500;
  padding: 12px;
  border-radius: 12px;
  background: #333333;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.player-x {
  color: #03dac6;
}

.player-o {
  color: #cf6679;
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}

.new-game-button,
.toggle-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.new-game-button {
  background: #03dac6;
  color: #000000;
}

.new-game-button:hover {
  background: #00c4b4;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(3, 218, 198, 0.3);
}

.toggle-button {
  background: #333333;
  color: #e0e0e0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.toggle-button.active {
  background: #bb86fc;
  color: #000000;
  border: none;
}

.toggle-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(187, 134, 252, 0.2);
}

.games-counter {
  color: #888888;
  font-size: 1rem;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.games-counter .material-icons-round {
  font-size: 1.2rem;
  color: #bb86fc;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
  text-align: center;
}

.stat-card {
  background: #333333;
  padding: 16px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card.player-x-stats {
  background: rgba(3, 218, 198, 0.1);
}

.stat-card.player-o-stats {
  background: rgba(207, 102, 121, 0.1);
}

.stat-card.draw-stats {
  background: rgba(187, 134, 252, 0.1);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 600;
}

.stat-label {
  font-size: 0.9rem;
  color: #888888;
  display: flex;
  align-items: center;
  gap: 4px;
}

.stat-card.player-x-stats .stat-value {
  color: #03dac6;
}

.stat-card.player-o-stats .stat-value {
  color: #cf6679;
}

.stat-card.draw-stats .stat-value {
  color: #bb86fc;
}

@media (max-width: 480px) {
  .game-container {
    padding: 1.5rem;
    border-radius: 20px;
  }

  h1 {
    font-size: 2rem;
  }

  .game-icon {
    font-size: 2rem;
  }

  .cell {
    border-radius: 12px;
  }

  .cell .material-icons-round {
    font-size: 2rem;
  }

  .stats {
    gap: 8px;
  }

  .stat-card {
    padding: 12px;
  }

  .stat-value {
    font-size: 1.25rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }
}
